import { MockMethod } from 'vite-plugin-mock'
const Mock = require('mockjs')
export default [
    // 获取用户信息
    {
        url: '/get/userInfo',
        method: 'get',
        timeout: 1000,
        response: (req) => {
            console.log(req.query)
            let data = Mock.mock({
                success: true,
                userInfo: {
                    realName: '@cname',
                    avatarSrc: 'https://img2.baidu.com/it/u=1790834130,1952230725&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
                },
            })
            return data
        },
    },
] as MockMethod[]